extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[普通]古立特圣剑"
	att.atk = 60
	att.cri = 0.1
	att.criR = 0.1
	info = "每回合首轮炮击伤害若暴击，则伤害提高500%\n[color=#DC143C]同时装备三件时可升级[/color]"

var flag = true
func _connect():
	._connect()
	sys.main.connect("onBattleStart", self, "start")
	masCha.connect("onAtkChara",self,"_onAtkChara")

func _onAtkChara(atkInfo):
	if atkInfo.atkType == sys.AtkType.GUN and flag:
		flag = false
		if atkInfo.isCri:
			atkInfo.factor += 5

func start():
	if utils.inBattle(masCha):
		flag = true

func upgrade():
	name = "[color=#FFFF00][史诗]古立特圣剑"
	att.atk = 120
	att.cri = 0.2
	att.criR = 0.2
	info = "每回合首轮炮击伤害若暴击，则伤害提高500%"